           package com.java.diagnostics.visualizer.parser.vgc.converters;
           
           import com.java.diagnostics.visualizer.gc.defaultextensions.DefaultExtensionsPreferenceInitializer;
           import com.java.diagnostics.visualizer.impl.preferences.GCAndMemoryVisualizerPreferenceInitializer;
           import com.java.diagnostics.visualizer.impl.preferences.SmartPreferences;
           import org.osgi.service.prefs.Preferences;
           
           public class UnitFormatPreferenceHelper
           {
             private SmartPreferences preferences;
             public static final String DATE_FORMAT = UnitFormatPreferenceHelper.class + 
               "DateFormat";
           
             public static final String ENABLE_DATE_FORMAT = UnitFormatPreferenceHelper.class + 
               "EnableDateFormat";
           
             public UnitFormatPreferenceHelper() {
               this.preferences = DefaultExtensionsPreferenceInitializer.getInstance().getPreferences();
             }
           
             public String getDateFormat() {
               return this.preferences.getString(DATE_FORMAT);
             }
           
             public boolean isCustomDateFormatEnabled() {
               return this.preferences.getBoolean(ENABLE_DATE_FORMAT);
             }
           
             public static void initializeDefaults(Preferences preferences)
             {
               preferences.putBoolean(ENABLE_DATE_FORMAT, false);
               preferences.put(DATE_FORMAT, "");
             }
           }

